#ifndef __HAND_VALUE_H__
#define __HAND_VALUE_H__

#include "std_inc.h"

#ifdef __cplusplus
extern "C" {
#endif

uint32_t os_card_2_code(uint8_t card[2]);

/* return the value of the hand. highest value are better.
 * WARNING: ocards are also ordered from highest to lowest value 
 */
uint32_t os_compute_hand_value(uint8_t pcards[2], uint8_t ocards[5]);

/* print in plain text the value type of the hand (ie: full house)
 * value= the value returned by os_compute_hand_value */
const char *os_hand_value_2_text(uint32_t value);

#ifdef __cplusplus
}
#endif

#endif /* __HAND_VALUE_H__ */
